//
//  CYICollectionViewFlowLayout.m
//  CreditAddressBook
//
//  Created by LE on 15/11/13.
//  Copyright © 2015年 Lee. All rights reserved.
//

#import "CYICollectionViewFlowLayout.h"

@implementation CYICollectionViewFlowLayout

- (UICollectionViewLayoutAttributes*)initialLayoutAttributesForAppearingItemAtIndexPath:(NSIndexPath *)itemIndexPath {
    UICollectionViewLayoutAttributes *attr = [self layoutAttributesForItemAtIndexPath:itemIndexPath];
    
    attr.transform = CGAffineTransformRotate(CGAffineTransformMakeScale(0.2, 0.2), M_PI);
    attr.center = CGPointMake(CGRectGetMidX(self.collectionView.bounds), CGRectGetMaxY(self.collectionView.bounds));
    
    return attr;
}
@end
